﻿using System.Collections.Generic;

namespace NeGroid.ChampionshipManager.Core
{	
	public class GameInfo : BaseEntity, IConcurrencyEntity
	{
		public override int Id
		{
			get { return GameId; }
			set { GameId = value; }
		}
		public int GameId { get; set; }
		public int? ReferyId{ get; set; }
        
        public virtual Refery Refery { get; set; }
		public virtual Game Game { get; set; }
		public virtual ICollection<Goal> Goals { get; set; }
        public virtual ICollection<Substition> Substitions { get; set; }
        public virtual ICollection<Player> TeamHomePlayers { get; set; }
        public virtual ICollection<Player> TeamGuestPlayers { get; set; }

		public byte[] Timestamp { get; set; }
	}
}
